<template>
    <div class="container">
        <p class="oneP">多项优势保障广告投放效果</p>
        <p class="twoP">满足客户一站式互联网广告投放服务</p>
        <div class="rowOne">
            <div class="rec1" v-for="(item,index) in arr1" :key="index" @mouseover="show(index)">
                <div class="rec1Son">
                    <div class="left">
                        <img :src="item[0]">
                        <img :src="item[4]">
                    </div>
                    <div class="right">
                        <p>{{item[1]}}</p>
                        <p>{{item[2]}}</p>
                    </div>
                </div>
            </div>
        </div>
    </div>
</template>
<script>
require("../../assets/css/p.css")
const img1 = require("../../assets/img/bigcustomer/3.png")
const img2 = require("../../assets/img/bigcustomer/5.png")
const img3 = require("../../assets/img/bigcustomer/9.png")
const img4 = require("../../assets/img/bigcustomer/11.png")
const img5 = require("../../assets/img/bigcustomer/13.png")
const img6 = require("../../assets/img/bigcustomer/4.png")
const img7 = require("../../assets/img/bigcustomer/6.png")
const img8 = require("../../assets/img/bigcustomer/10.png")
const img9 = require("../../assets/img/bigcustomer/12.png")
const img10 = require("../../assets/img/bigcustomer/14.png")
const img11 = require("../../assets/img/bigcustomer/8.png")
const img12 = require("../../assets/img/bigcustomer/7.png")
export default {
    data(){
        return {
            arr1:[
                [img1,"免费媒介策略支持","广告营销总监带队，为客户提供专业广告方案。",img6,img11],
                [img2,"众多媒介资源支持","腾讯、百度、搜狐、网易以及大量KOL支持。",img7,img11],
                [img3,"战略性合作支持","以较低广告服务成本和强势媒体资源，协助广告公司项目投标。",img8,img11],
                [img4,"广告AE对接","专业广告AE跟进服务框架签约，一对一项目小组，满足广告投放服务。",img9,img11],
                [img5,"全年24小时服务","全年每天24小时提供服务帮助，致力解决客户在品牌推广过程中的难题",img10,img11]
            ]
        }
    },
    methods:{
        show(index){
            // 初始化arr1
            this.arr1[0][0] = img1
            this.arr1[1][0] = img2
            this.arr1[2][0] = img3
            this.arr1[3][0] = img4
            this.arr1[4][0] = img5
            this.arr1[0][3] = img6
            this.arr1[1][3] = img7
            this.arr1[2][3] = img8
            this.arr1[3][3] = img9
            this.arr1[4][3] = img10
            for(let i = 0;i<this.arr1.length;i++){
                this.arr1[i][4] = img11
            }
            this.arr1[index].splice(0,1,this.arr1[index][3])
            this.arr1[index].splice(4,1,img12)
        }
    },
    created: function(){
      this.arr1[0][0] = img6;
      this.arr1[0][4] = img12;
    }
}
</script>
<style scoped>
.container{
    width: 1200px;
    margin:0 auto;
    text-align: center;
    margin-top: 80px;
    overflow: hidden;
}
.oneButton{
    width:140px;
}
.rowOne{
    overflow: hidden;
    margin-top: 60px;
    height: 589px;
    background: url("../../assets/img/二类电商/一键生成/bg.png");
    position: relative;
}
.rec1{
    cursor: pointer;
}
.rec1:nth-child(1){
    width: 414px;
    height: 180px;
    background: url("../../assets/img/二类电商/一键生成/circle.png");
    /* border:1px solid red; */
    position: absolute;
    top:106px;
    left:0;
}
.rec1:nth-child(2){
    width: 414px;
    height: 180px;
    background: url("../../assets/img/二类电商/一键生成/circle.png");
    /* border:1px solid red; */
    position: absolute;
    top:0;
    right: 90px;
}
.rec1:nth-child(3){
    width: 414px;
    height: 180px;
    background: url("../../assets/img/二类电商/一键生成/circle.png");
    /* border:1px solid red; */
    position: absolute;
    top:185px;
    right: 260px;
}
.rec1:nth-child(4){
    width: 414px;
    height: 180px;
    background: url("../../assets/img/二类电商/一键生成/circle.png");
    /* border:1px solid red; */
    position: absolute;
    top:330px;
    left: 47px;
}
.rec1:nth-child(5){
    width: 414px;
    height: 180px;
    background: url("../../assets/img/二类电商/一键生成/circle.png");
    /* border:1px solid red; */
    position: absolute;
    top:370px;
    right: 0;
}
.rec1Son{
    width:354px;
    height: 120px;
    margin-left: 30px;
    margin-top: 30px;
}
.left{
    float:left;
    width: 120px;
    height: 120px;
    text-align: center;
    line-height: 120px;
}
.left>img:nth-child(1){
    margin-right: 15px;
}
.rec1:nth-child(5) div.left>img:nth-child(2){
    margin-right:15px;
}
.right{
    float: left;
    width: 234px;
    text-align: left;
}
.right>p:nth-child(1){
    font-weight: bold;
    font-size: 18px;
    margin-top: 10px;
}
.right>p:nth-child(2){
    font-size: 16px;
    margin-top: 18px;
    color:#222222;
}
</style>